package com.atguigu.gmall.product.api;

import com.atguigu.gmall.feign.pay.PayFeignClient;
import com.atguigu.gmall.model.product.SkuInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author lsj
 * @create 2021-11-13 10:38
 */
@RequestMapping("/test")
@RestController
public class TestController {
    @Autowired
    private PayFeignClient payFeignClient;

    /**
     * 测试(就仅仅为了测试而已)
     */
    @GetMapping("/{outTradeNo}")
    public String test(@PathVariable("outTradeNo") String outTradeNo){

        return payFeignClient.queryOrderPayStatus(outTradeNo);
    }
}
